package qx.hyj.petrescue.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * (Blog)实体类
 *
 * @author makejava
 * @since 2024-12-19 10:55:59
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "帖子")
@TableName("blog")
public class Blog{

    /**
     * 唯一标识
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 作者id
     */
    @TableField("author")
    private Integer author;

    /**
     * 贴子类型
     */
    @TableField("blogtype")
    private Integer blogtype;

    /**
     * 标题
     */
    @TableField("title")
    private String title;

    /**
     * 内容
     */
    @TableField("content")
    private String content;

    /**
     * 阅读次数
     */
    @TableField("readed")
    private Integer readed;

    /**
     * 时间
     */
    @TableField("blogtime")
    private LocalDateTime blogtime;

    /**
     * 图片
     */
    @TableField("picture")
    private String picture;

    /**
     * 动物类型
     */
    @TableField("dwtype")
    private Integer dwtype;
}

